package com.lxg.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * @author 陆小根
 * date: 2022/04/25
 * Description:
 */
@Component
@Aspect
public class MyAdvice {

  @Pointcut("execution(void com.lxg.dao.BookDao.update())")
  private void pt() {}

  @Before("pt()")
  public void method() {
    System.out.println(System.currentTimeMillis());
  }

}
